home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIUserCertPicker.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  3.7 KB  |  96 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIUserCertPicker.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIUserCertPicker_h__
  6. #define __gen_nsIUserCertPicker_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIX509Cert; /* forward declaration */
  18.  
  19. class nsIInterfaceRequestor; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIUserCertPicker */
  23. #define NS_IUSERCERTPICKER_IID_STR "06d018e0-d41b-4629-a4fc-daaa6029888e"
  24.  
  25. #define NS_IUSERCERTPICKER_IID \
  26.   {0x06d018e0, 0xd41b, 0x4629, \
  27.     { 0xa4, 0xfc, 0xda, 0xaa, 0x60, 0x29, 0x88, 0x8e }}
  28.  
  29. class NS_NO_VTABLE nsIUserCertPicker : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IUSERCERTPICKER_IID)
  33.  
  34.   /* nsIX509Cert pickByUsage (in nsIInterfaceRequestor ctx, in wstring selectedNickname, in long certUsage, in boolean allowInvalid, in boolean allowDuplicateNicknames, out boolean canceled); */
  35.   NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar *selectedNickname, PRInt32 certUsage, PRBool allowInvalid, PRBool allowDuplicateNicknames, PRBool *canceled, nsIX509Cert **_retval) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIUSERCERTPICKER \
  41.   NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar *selectedNickname, PRInt32 certUsage, PRBool allowInvalid, PRBool allowDuplicateNicknames, PRBool *canceled, nsIX509Cert **_retval); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIUSERCERTPICKER(_to) \
  45.   NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar *selectedNickname, PRInt32 certUsage, PRBool allowInvalid, PRBool allowDuplicateNicknames, PRBool *canceled, nsIX509Cert **_retval) { return _to PickByUsage(ctx, selectedNickname, certUsage, allowInvalid, allowDuplicateNicknames, canceled, _retval); } 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIUSERCERTPICKER(_to) \
  49.   NS_IMETHOD PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar *selectedNickname, PRInt32 certUsage, PRBool allowInvalid, PRBool allowDuplicateNicknames, PRBool *canceled, nsIX509Cert **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->PickByUsage(ctx, selectedNickname, certUsage, allowInvalid, allowDuplicateNicknames, canceled, _retval); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsUserCertPicker : public nsIUserCertPicker
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSIUSERCERTPICKER
  60.  
  61.   nsUserCertPicker();
  62.  
  63. private:
  64.   ~nsUserCertPicker();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsUserCertPicker, nsIUserCertPicker)
  72.  
  73. nsUserCertPicker::nsUserCertPicker()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsUserCertPicker::~nsUserCertPicker()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* nsIX509Cert pickByUsage (in nsIInterfaceRequestor ctx, in wstring selectedNickname, in long certUsage, in boolean allowInvalid, in boolean allowDuplicateNicknames, out boolean canceled); */
  84. NS_IMETHODIMP nsUserCertPicker::PickByUsage(nsIInterfaceRequestor *ctx, const PRUnichar *selectedNickname, PRInt32 certUsage, PRBool allowInvalid, PRBool allowDuplicateNicknames, PRBool *canceled, nsIX509Cert **_retval)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88.  
  89. /* End of implementation class template. */
  90. #endif
  91.  
  92. #define NS_CERT_PICKER_CONTRACTID "@mozilla.org/user_cert_picker;1"
  93. #define NS_CERT_PICKER_CLASSNAME "Cert Picker Object"
  94.  
  95. #endif /* __gen_nsIUserCertPicker_h__ */
  96.